package org.dromara.product.domain.bo;

import org.dromara.product.domain.KyProducts;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品业务对象 ky_products
 *
 * @author kuyu
 * @date 2023-12-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KyProducts.class, reverseConvertGenerate = false)
public class KyProductsBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 型号
     */
    @NotBlank(message = "型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 品牌
     */
    @NotBlank(message = "品牌不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brand;

    /**
     * 供应商
     */
//    @NotBlank(message = "供应商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplyId;

    /**
     * 条码
     */
//    @NotBlank(message = "条码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String barcode;

    /**
     * 数量
     */
//    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long number;

    /**
     * 低值
     */
//    @NotNull(message = "低值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long lowerNumber;

    /**
     * 高值
     */
//    @NotNull(message = "高值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long upperNumber;

    /**
     * 预警开关
     */
//    @NotBlank(message = "预警开关不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmStatus;

    /**
     * 二维码
     */
//    @NotBlank(message = "二维码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qrcode;

    private String photos;


}
